export const USER_TOKEN = 'user-token';

export function getJwtSecretKey(): string {
  // const { JWT_SECRET_KEY } = process.env;
  const JWT_SECRET_KEY = '123123';
  if (!JWT_SECRET_KEY || JWT_SECRET_KEY.length === 0) {
    throw new Error('没有秘钥');
  }
  return JWT_SECRET_KEY;
}

export const expirationTime = '7d';

export const maxAge = 7 * 24 * 60 * 60 * 1000;
